<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>app</title>

    <!-- Bootstrap core CSS -->
    <link href="/appstore/Public/assets/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/appstore/Public/assets/css/dashboard.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="/appstore/Public/assets/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">Project name</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#">Dashboard</a></li>
            <li><a href="#">Settings</a></li>
            <li><a href="#">Profile</a></li>
            <li><a href="#">Help</a></li>
          </ul>
          <form class="navbar-form navbar-right">
            <input type="text" class="form-control" placeholder="Search...">
          </form>
        </div>
      </div>
    </nav>
    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li class="active"><a href="<?php echo U('admin.php/User/index');?>">用户列表 <span class="sr-only">(current)</span></a></li>
            <li><a href="#">as</a></li>
            <li><a href="#">Analytics</a></li>
            <li><a href="#">Export</a></li>
          </ul>
          <ul class="nav nav-sidebar">
            <li><a href="">Nav item</a></li>
            <li><a href="">Nav item again</a></li>
            <li><a href="">One more nav</a></li>
            <li><a href="">Another nav item</a></li>
            <li><a href="">More navigation</a></li>
          </ul>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">

<table class="table table-striped">

<tr><td>用户编号</td><td>用户名</td><td>密码</td><td>邮箱</td><td>电话</td><td>真实姓名</td><td>头像</td><td>自我介绍</td><td>是否为明星作者</td><td>是否在首页显示</td><td>状态</td><td>通知信息</td><td>用户注册时间</td><td>操作</td></tr>

<?php if(is_array($user)): $i = 0; $__LIST__ = $user;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
<td><?php echo ($vo["ydq_id"]); ?></td>
<td><?php echo ($vo["ydq_username"]); ?></td>
<td><?php echo ($vo["ydq_password"]); ?></td>
<td><?php echo ($vo["ydq_email"]); ?></td>
<td><?php echo ($vo["ydq_tele"]); ?>  </td>
<td><?php echo ($vo["ydq_realname"]); ?>  </td>
<td><img src="/appstore/uploads/<?php echo ($vo["ydq_photo"]); ?>"/></td>
<td><?php echo ($vo["ydq_intro"]); ?> </td>
<td><?php echo ($vo["ydq_isstar"]); ?>  </td>
<td><?php echo ($vo["ydq_isfirst"]); ?> </td>
<td><?php echo ($vo["ydq_state"]); ?> </td>
<td><?php echo ($vo["ydq_veryfyinfo"]); ?>  </td>
<td><?php echo ($vo["ydq_createtime"]); ?>  </td>
<td><a href="<?php echo U('view',array('id'=>$vo['ydq_id']));?>">查看</a>
<br>
<td><a href="<?php echo U('admin.php/index/mod',array('id'=>$vo['ydq_id']));?>">修改</a>
<br>
<td><a href="javascript:if(confirm('确认删除?')) location='<?php echo U('admin.php/index/del',array('id'=>$vo['ydq_id']));?>'">删除</a>
<br>
<a href=".php?qx=$row['ydq_id']">取消明星作者</a>
<br>
<a href=".php?sz=$row['ydq_id']">设置首页推荐</a>
<br>
<a href=".php?jy=$row['ydq_id']">禁用</a>
</td>
</tr><?php endforeach; endif; else: echo "" ;endif; ?>

</table>
        </div>
      </div>
    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
    <!-- Just to make our placeholder images work. Don't actually copy the next line! -->
    <script src="../../assets/js/vendor/holder.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
  </body>
</html>